<?php
class Subcategorymanager_Data_Updatesubcategorysettings implements Subcategorymanager_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }

    public function main(array $variables = null) {
        $variables['query'] = "UPDATE subcategory_settings SET subcategory_settings.subcategory_name = '".$variables['post']['subcategory_name']."', subcategory_settings.category_name='".$variables['post']['category_name']."', subcategory_settings.status_name='".$variables['post']['status_name']."', subcategory_settings.access_level='".$variables['post']['access_level']."' WHERE subcategory_settings.subcategory_name='".$variables['post']['old_subcategory_name']."';";
        //echo $variables['query'];
        //die();
        return $this->core_controller_dataoperation->main($variables);
    }

}
